<?php
namespace app\common\validate;

use think\Validate;

class ResumeWorkValidate extends Validate
{
    protected $rule =   [
        'resume_id|简历ID'      => 'require|number',
        'company_name|公司名称' => 'require|length:1,100',
        'jobs|职位名称'         => 'require|length:1,50',
        'industry|所属行业'     => 'require|length:1,50',
        'witness|证明人'        => 'require|length:1,20',
        'start_time|入学时间'   => 'require|date',
        'end_time|毕业时间'     => 'require|date',
    ];
    
    protected $scene = [
        /** api */
        'add'    => ['resume_id', 'company_name', 'jobs', 'industry', 'witness', 'start_time', 'end_time'],
    ];
}